package com.bgs.service.impl;

import com.bgs.pojo.Circle;
import com.bgs.mapper.CircleMapper;
import com.bgs.pojo.vo.CircleTow;
import com.bgs.pojo.vo.FocusOnTow;
import com.bgs.service.CircleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 圈子 服务实现类
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
@Service
public class CircleServiceImpl extends ServiceImpl<CircleMapper, Circle> implements CircleService {
    @Autowired
    private CircleMapper circleMapper;
    /**
     * 后台圈子审核查看
     * @param beforeUserName
     * @param orderDetailId
     * @return
     */
    @Override
    public List<Circle> TowGettableDataQuan(String beforeUserName, Integer orderDetailId) {
        return circleMapper.TowGettableDataQuan(beforeUserName,orderDetailId);
    }

    /**
     * 根据用户id查看当前用户关注店铺
     * @param beforeUserId
     * @return
     */
    @Override
    public List<FocusOnTow> TowGetData(Integer beforeUserId) {
        return circleMapper.TowGetData(beforeUserId);
    }

    @Override
    public List<CircleTow> TowGetCircle(Integer storeId) {
        return circleMapper.TowGetCircle(storeId);
    }

    /**
     * 发布圈子
     * @param circle
     * @return
     */
    @Override
    public int TowAddCircle(Circle circle) {
        return circleMapper.TowAddCircle(circle);
    }


    /**
     * 查询圈子内容
     * @param storeId
     * @return
     */



}
